package liuliu.throughwaring.control.add.police.work;

import android.content.Context;

import net.tsz.afinal.FinalDb;

import liuliu.throughwaring.control.task.addTask;
import liuliu.throughwaring.model.TransactionModel;

/**
 * Created by Administrator on 2015/12/7.
 */
public class RegTransactionListener {
    IRegTransationView iRegTransationView;
    Context context;
    FinalDb db;
    addTask add;
    public RegTransactionListener(Context context,IRegTransationView view){
        this.context=context;
        this.iRegTransationView=view;
        db=FinalDb.create(context);
        add=new addTask(context);
    }
    public void RegTransaction(TransactionModel model){
        add.addTransaction(model,iRegTransationView);
    }
}
